
<div class="left">
    <ul id="tree_list">
        <li><a href="index.php?category=fotoaparati">Fotoaparati</a></li>
        <li><a href="index.php?category=racunalniki">Racunalniki</a></li>
        <li><a href="index.php?category=hifi">HI-FI</a></li>
        <li><a href="index.php?category=belatehnika">Bela Tehnika</a></li>
        <li><a href="index.php?category=vrt">Vrt</a></li>
        <li><a href="index.php?category=avtomobili">Avtomobili</a></li>
        <li><a href="index.php?category=igrace">Igrace</a></li>
        <li>
    
    </ul>

    <div id="menu_buttons">
        <form method="post" action="index.php">
            <input type="hidden" name="forma" value="1" /><br /> <input type="button" value="Dodaj novo napravo"
                onclick="onDodajNapravo()" /><br /> <input type="button" value="Dodaj lastnosti naprave"
                onclick="onDodajLastnostiNaprave()" /><br /> <input type="button" value="Dodaj slike naprave"
                onclick="onDodajSlikeNaprave()" /><br /> <input type="button" value="Dodaj preizkus naprave"
                onclick="onDodajPreizkusNaprave()" /><br /> <br /> <a href="forum.php">FORUM</a><br /> <br /> <a
                href="odjava.php">ODJAVA</a><br /> <br />
        </form>
    </div>
</div>

<div
    class="right">
    <!--  INSTANCA forme za Dodajanje nove naprave  ----------------------------------------  -->
    <div id="div_nova_naprava">
        <form id="form_nova_naprava" action="addGadget.php" method="post">
            <table border="0">
                <tr>
                    <td>Vrsta naprave</td>
                    <td><input type="text" name="gvrsta" id="vrsta_naprave" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Proizvajalec</td>
                    <td><input type="text" name="gproizvajalec" id="proizvajalec" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Model</td>
                    <td><input type="text" name="gmodel" id="model" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Opis</td>
                    <td><textarea rows="5" cols="20" name="gopis" id="opis"></textarea></td>
                </tr>
            </table>
            <p>
                <input type="submit" value="Dodaj novo napravo" /> <input type="reset" value="Ponastavi" />
            </p>
        </form>
    </div>

    <!--  INSTANCA forme za Dodajanje lastnosti naprave  ----------------------------------------  -->
    <div id="div_lastnosti_naprave">
        <form id="form_lastnosti_naprave" action="addProperty.php" method="post">
            <table border="0">
                <tr>
                    <td>Dimenzije</td>
                    <td><input type="text" name="gdimenzije" id="dimenzije" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Teža</td>
                    <td><input type="text" name="gteza" id="teza" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Barva</td>
                    <td><input type="text" name="gbarva" id="barva" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Cena</td>
                    <td><input type="text" name="gcena" id="cena" size="30" maxlength="60" /></td>
                </tr>
            </table>
            <p>
                <input type="submit" value="Dodaj lastnosti naprave" /> <input type="reset" value="Ponastavi" />
            </p>
        </form>
    </div>

    <!--  INSTANCA forme za Dodajanje slik naprave  ----------------------------------------  -->
    <div id="div_slike_naprave">
        <form id="form_slike_naprave" action="addImage.php" method="post">
            <table border="0">
                <tr>
                    <td>Povezava do slike</td>
                    <td><input type="text" name="gslika" id="povezava_do_slike" size="30" maxlength="60" /></td>
                </tr>
            </table>
            <p>
                <input type="submit" value="Dodaj slike naprave" /> <input type="reset" value="Ponastavi" />
            </p>
        </form>
    </div>

    <!--  INSTANCA forme za Dodajanje preizkusa naprave  ----------------------------------------  -->
    <div id="div_preizkus_naprave">
        <form id="form_preizkus_naprave" action="addReview.php" method="post">
            <table border="0">
                <tr>
                    <td>Preizkuševalec</td>
                    <td><input type="text" name="gpreizkusevalec" id="preizkusevalec" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Številka testa</td>
                    <td><input type="text" name="gsttesta" id="stevilka_testa" size="30" maxlength="60" /></td>
                </tr>
                <tr>
                    <td>Ocena testa</td>
                    <td><input type="text" name="gocena" id="ocena_testa" size="30" maxlength="60" /></td>
                </tr>
            </table>
            <p>
                <input type="submit" value="Dodaj preizkus naprave" /> <input type="reset" value="Ponastavi" />
            </p>
        </form>
    </div>

    <!--  INSTANCA gadgeta  -----------------------------------------------------------------  -->

    <?php
    if(!isset($_POST['forma']));
    if(isset($_SESSION['idNaprave']))
        print($_SESSION['idNaprave']);
     
    include'instancaGadgeta.php';
    ?>
    <!--  ------------------------------------------------------------------------------------  -->
</div>
